<template>
    <page-body>
        <view class="page">
            <view class="flex benben-position-layout flex flex-wrap align-center revieweds_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
                <view class='flex flex-wrap align-center justify-between flex-sub revieweds_fd0_0'>
                    <view class='flex flex-wrap align-center revieweds_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
                        <text class='fu-iconfont2  revieweds_fd0_0_c0_c0'>&#xE794;</text>
                    </view>
                    <text class='revieweds_fd0_0_c1'>骑手认证</text>
                    <view class='flex flex-wrap align-center justify-end revieweds_fd0_0_c0'>
                    </view>
                </view>

            </view>
            <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
            <!---待认证审核flex布局开始-->
            <view class="flex flex-direction align-center justify-center benben-flex-layout revieweds_flex_1" v-if=" detail.status==0">
                <image class='revieweds_fd1_0' mode="aspectFit" :src='STATIC_URL+"92.png"'></image>
                <text class='revieweds_fd1_1'>审核中，请耐心等待…</text>
            </view>

            <!---待认证审核flex布局结束-->
            <!---审核失败flex布局开始-->
            <view class="flex flex-direction align-center justify-center benben-flex-layout revieweds_flex_2" v-if=" detail.status=='2'">
                <image class='revieweds_fd2_0' mode="aspectFit" :src='STATIC_URL+"93.png"'></image>
                <text class='revieweds_fd2_1'>审核失败</text>
                <view class='revieweds_fd2_2'>
                    <text class='revieweds_fd2_2_c0'>未通过原因：</text>
                    <text class='revieweds_fd2_2_c0'>{{detail.reason}}</text>
                </view>
                <button class='revieweds_fd2_3' @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/my/Rzrider/Rzrider?id=1`">重新提交</button>
            </view>

            <!---审核失败flex布局结束-->
            <!---审核成功flex布局开始-->
            <view class="flex flex-direction align-center justify-center benben-flex-layout revieweds_flex_3" v-if=" detail.status=='1'">
                <image class='revieweds_fd3_0' mode="aspectFit" :src='STATIC_URL+"94.png"'></image>
                <text class='revieweds_fd3_1'>审核通过，可以切换骑手身份进行接单了</text>
                <button class='revieweds_fd3_2' @tap.stop="tijiao">立即前往</button>
            </view>

            <!---审核成功flex布局结束-->
            <!---公司信息flex布局开始-->
            <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout revieweds_flex_4">
                <view class='flex align-center justify-between revieweds_fd4_0'>
                    <text class='revieweds_fd4_0_c0'>真实姓名</text>
                    <text class='flex-sub revieweds_fd4_0_c1'>{{detail.name}}</text>
                </view>
                <view class='flex align-center justify-between revieweds_fd4_0'>
                    <text class='revieweds_fd4_0_c0'>手机号</text>
                    <text class='revieweds_fd4_1_c1'>{{detail.phone}}</text>
                </view>
                <view class='flex align-center justify-between revieweds_fd4_0'>
                    <text class='revieweds_fd4_0_c0'>性别</text>
                    <!-- <text class='revieweds_fd4_1_c1'>{{detail.sex}}</text> -->
                    <text class='revieweds_fd4_1_c1' v-if=" detail.sex=='2'">女</text>
					<text class='revieweds_fd4_1_c1' v-if=" detail.sex=='1'">男</text>
                </view>
                <view class='flex align-center justify-between revieweds_fd4_0'>
                    <text class='revieweds_fd4_0_c0'>学校</text>
                    <text class='revieweds_fd4_1_c1'>{{detail.school_name}}</text>
                </view>
                <view class='flex align-center justify-between revieweds_fd4_0'>
                    <text class='revieweds_fd4_0_c0'>学号</text>
                    <text class='revieweds_fd4_1_c1'>{{detail.id_number}}</text>
                </view>
                <view class='flex flex-direction align-stretch justify-between revieweds_fd4_5'>
                    <text class='revieweds_fd4_5_c0'>学生证图片</text>
					<template v-for='(item,key0) in detail.card_image'>
                        <image class='revieweds_fd4_5_c1' mode="aspectFill" :src='item'  
						@tap.stop="multiImagePreview(item,detail.card_image,'')"></image>
					</template>
                </view>
                <view class='flex flex-direction align-stretch justify-between revieweds_fd4_6'>
                    <text class='revieweds_fd4_5_c0'>提现收款码</text>
                    <image class='revieweds_fd4_6_c1' mode="aspectFill" @tap.stop="singleImagePreview(detail.cash_ewm)" :src='detail.cash_ewm'></image>
                </view>
            </view>

            <!---公司信息flex布局结束-->


        </view>
    </page-body>
</template>
<script>
    import {
        validate
    } from '@/common/utils/validate.js'

    export default {
        components: {},


        data() {
            return {
                "detail": {
                    "time_rate": "",
                    "distance": "",
                    "number": "",
                    "is_open": "",
                    "status": "",
                    "name": "",
                    "phone": "",
                    "sex": "",
                    "birthday": "",
                    "id_number": "",
                    "id_back": "",
                    "id_front": "",
                    "id_hold": "",
                    "address": "",
                    "reason": "",
                    "address_province": "",
                    "address_city": "",
                    "address_district": "",
                    "address_address": "",
                    "address_lat": "",
                    "address_lng": "",
                    "user_id": "",
                    "logo": "",
                    "order_num": "",
                    "score": "",
                    "code": "",
                    "id_front_url": "",
                    "id_back_url": "",
                    "id_hold_url": "",
                    "score_num": "",
                    "aid": "",
                    "member_id": "",
                    "uid": "",
                    "create_time": "",
                    "update_time": "",
                    "sort": "",
                    "is_del": "",
                    "create_id": "",
                    "row_lock": "",
                    "type": "",
                    "good_rate": "",
                    "school_id": "",
                    "cash_ewm": "",
                    "card_image": "",
                    "sex_name": "",
                    "school_name": ""
                }
            };
        },
        computed: {

        },
        watch: {},
        onLoad(options) {

        },
        onUnload() {

        },
        onReady() {

        },
        onShow() {
            this.getju46dbd2786211Func()
        },
        onHide() {

        },
        onResize() {

        },
        onPullDownRefresh() {

        },
        onReachBottom(e) {

        },
        onPageScroll(e) {

        },
        methods: {
			tijiao(){
				uni.setStorageSync('tabberType', 2)
				uni.reLaunch({
					url: '/pages/tabBar/index/index'
				});
			},
            //骑手认证状态
            async getju46dbd2786211Func() {
                //请求方法
                //数据验证

                let datadetail = await this.$api.get(global.apiUrls.post646dbd2786211, {

                });

                if (datadetail.data.code != 1) {
                    this.$message.info(datadetail.data.msg);
                    return
                }
                let infodetail = datadetail.data;
                this.detail = infodetail.data

            }
        }
    };
</script>
<style lang="scss" scoped>
    .page {
        width: 100vw;
        overflow-x: hidden;
        min-height: calc(100vh - var(--window-bottom));
        background: rgba(255, 255, 255, 1);
        background-size: 100% auto;
    }

    .revieweds_flex_0 {
        border-bottom: 1px solid #eee;
        background: #fff;
        width: 750rpx;
        height: 88rpx;
        overflow: hidden;
        z-index: 10;
        top: 0rpx;
        background-size: 100% auto !important;
    }

    .revieweds_fd0_0_c1 {
        font-size: 36rpx;
        font-weight: 500;
        color: #333333;
        line-height: 50rpx;
    }

    .revieweds_fd0_0_c0_c0 {
        font-size: 36rpx;
        color: #333;
    }

    .revieweds_fd0_0_c0 {
        width: 120rpx;
        height: 88rpx;
    }

    .revieweds_fd0_0 {
        padding: 0rpx 32rpx 0rpx 32rpx;
        height: 88rpx;
    }

    .revieweds_flex_1 {
        padding: 64rpx 0rpx 30rpx 0rpx;
        border-radius: 16rpx 16rpx 16rpx 16rpx;
    }

    .revieweds_fd1_1 {
        color: #333333;
        font-size: 28rpx;
        font-weight: 500;
        line-height: 40rpx;
        margin: 28rpx 0rpx 0rpx 0rpx;
    }

    .revieweds_fd1_0 {
        width: 80rpx;
        height: 80rpx;
    }

    .revieweds_flex_2 {
        padding: 63rpx 64rpx 15rpx 64rpx;
    }

    .revieweds_fd2_3 {
        background: #FF8E21;
        border-radius: 44rpx 44rpx 44rpx 44rpx;
        width: 280rpx;
        line-height: 72rpx;
        font-size: 28rpx;
        color: #fff;
        height: 72rpx;
    }

    .revieweds_fd2_2_c0 {
        font-size: 28rpx;
        font-weight: 400;
        color: #333333;
        line-height: 40rpx;
        text-align: right;
    }

    .revieweds_fd2_2 {
        margin: 0rpx 0rpx 40rpx 0rpx;
    }

    .revieweds_fd2_1 {
        color: #333333;
        font-size: 28rpx;
        font-weight: 500;
        line-height: 40rpx;
        margin: 16rpx 0rpx 4rpx 0rpx;
    }

    .revieweds_fd2_0 {
        width: 80rpx;
        height: 80rpx;
    }

    .revieweds_flex_3 {
        padding: 63rpx 0rpx 32rpx 0rpx;
    }

    .revieweds_fd3_2 {
        background: #FF8E21;
        border-radius: 44rpx 44rpx 44rpx 44rpx;
        width: 280rpx;
        line-height: 72rpx;
        font-size: 28rpx;
        color: #fff;
        height: 72rpx;
    }

    .revieweds_fd3_1 {
        color: #333333;
        font-size: 28rpx;
        font-weight: 500;
        line-height: 40rpx;
        margin: 16rpx 0rpx 32rpx 0rpx;
        text-align: center;
    }

    .revieweds_fd3_0 {
        width: 80rpx;
        height: 80rpx;
    }

    .revieweds_flex_4 {
        padding: 0rpx 0rpx 128rpx 0rpx;
    }

    .revieweds_fd4_6_c1 {
        width: 343rpx;
        height: 343rpx;
        border-radius: 8rpx;
    }

    .revieweds_fd4_6 {
        margin: 0rpx 32rpx 0rpx 32rpx;
    }

    .revieweds_fd4_5_c1 {
        width: 686rpx;
        height: 365rpx;
        border-radius: 8rpx;
		margin-bottom: 24rpx;
    }

    .revieweds_fd4_5_c0 {
        color: #333333;
        font-size: 28rpx;
        font-weight: 400;
        line-height: 40rpx;
        margin: 0rpx 0rpx 24rpx 0rpx;
    }

    .revieweds_fd4_5 {
        margin: 32rpx 32rpx 40rpx 32rpx;
    }

    .revieweds_fd4_1_c1 {
        color: #333333;
        font-size: 28rpx;
        font-weight: 400;
        line-height: 40rpx;
        text-align: right;
    }

    .revieweds_fd4_0_c1 {
        color: #333333;
        font-size: 28rpx;
        font-weight: 400;
        line-height: 40rpx;
        margin: 0rpx 0rpx 0rpx 24rpx;
        text-align: right;
    }

    .revieweds_fd4_0_c0 {
        color: #333333;
        font-size: 28rpx;
        font-weight: 400;
        line-height: 40rpx;
    }

    .revieweds_fd4_0 {
        border-bottom: 1px solid #eee;
        background: #fff;
        padding: 32rpx 0rpx 32rpx 0rpx;
        background-size: 100% auto !important;
        margin: 0rpx 32rpx 0rpx 32rpx;
    }
</style>